package com.ctshk.rpc.custom.req.quotation;

import com.ctshk.common.model.Currency;
import com.ctshk.rpc.custom.dto.trip.QuotationTouristTypeDTO;
import com.ctshk.rpc.custom.req.QuotationTouristTypeReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 报价单自由报价套餐
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-01-16
 */
@Data
@ApiModel(value="FreeQuoteReqPackage", description="自由报价套餐")
public class FreeQuoteReqPackageReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private Long id;

    @NotBlank(message = "请输入套餐名称")
    @ApiModelProperty(value = "套餐名称", required = true)
    private String packageName;

    @NotNull(message = "请输入旅客总人数")
    @ApiModelProperty(value = "旅客总人数",required = true)
    private Integer totalPeople;

    @NotNull(message = "请输入总费用")
    @ApiModelProperty(value = "总费用",required = true)
    private BigDecimal totalAmount;

    @NotBlank(message = "请选择币种")
    @ApiModelProperty(value = "币种",required = true)
    private Currency currency;

    @ApiModelProperty(value = "旅客人数数组-自由报价套餐里面的旅客")
    private List<QuotationTouristTypeReq> packageTouristTypes;

    @ApiModelProperty(value = "旅客人数数组-预订下单页面")
    private List<QuotationTouristTypeDTO> quotationTouristTypeDTOS;

    @ApiModelProperty(value = "服务项目")
    private List<FreeQuoteServiceItemsReq> serviceItemsReqs;
}
